FROM andyorz/minimal-node
MAINTAINER Andy Yuan <andy@ycn.cc>

LABEL namespace="@NAMESPACE@"
LABEL name="@APP_NAME@"
LABEL version="@APP_VERSION@"
LABEL repo="@REPO@"

ADD package.json /app/package.json
ADD .nvmrc /app/.nvmrc
ADD dist/ /app/dist/
ADD node_modules/ /app/node_modules/

ENV NODE_ENV production
WORKDIR /app
EXPOSE @SERVER_PORT@

CMD ["npm", "run", "cluster"]
